<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Microsoft SQL Server and Sybase Functions (PDO_DBLIB)</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="pdo.cubrid-schema.html">« PDO::cubrid_schema</a></li>
      <li style="float: right;"><a href="ref.pdo-dblib.connection.html">PDO_DBLIB DSN »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="pdo.drivers.html">PDO 驱动</a></li>
    <li>Microsoft SQL Server and Sybase Functions (PDO_DBLIB)</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="ref.pdo-dblib" class="reference">
  
  <h1 class="title">Microsoft SQL Server and Sybase Functions (PDO_DBLIB)</h1>
  
  <div class="partintro">

   <div class="section" id="pdo-dblib.intro">
   <h2 class="title">简介</h2>
    <p class="para">
     PDO_DBLIB is a driver that implements the <a href="intro.pdo.html" class="link">PHP
     Data Objects (PDO) interface</a> to enable access from PHP to
     Microsoft SQL Server and Sybase databases through the FreeTDS library.
    </p>
    <p class="para">
     This extension is not available anymore on Windows.
    </p>
    <p class="para">
     On Windows, you should use SqlSrv, an alternative driver for MS SQL is 
     available from Microsoft: <a href="http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx" class="link external">&raquo;&nbsp;http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx
     </a>.
    </p>
    <p class="para">
     If it is not possible to use SqlSrv, you can use the 
     <a href="ref.pdo-odbc.html" class="link">PDO_ODBC</a> driver to connect to 
     Microsoft SQL Server and Sybase databases, as the native Windows DB-LIB 
     is ancient, thread un-safe and no longer supported by Microsoft.
    </p>
   </div>
  </div>

  

 <h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="ref.pdo-dblib.connection.html">PDO_DBLIB DSN</a> — Connecting to Microsoft SQL Server and Sybase databases</li></ul>
</div>
</div></div></body></html>